<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
	<title>test</title>
	<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>


<button id="test">点击测试</button>

<div id="cont"></div>

<script type="text/javascript">
	$("#test").click(function(){
		$.get("getajax",function(data){
			$.each(data,function(i,item){
				$("#cont").append(
					"<div>"+item+"</div>"
					);
			});
			
		});
	});
</script>
</body>
</html>